package net.lainiao.reptile.jobs;

import net.lainiao.reptile.ApplicationCommon;
import net.lainiao.service.elastic.ElasticService;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Created by Administrator on 2017/1/12.
 */
@DisallowConcurrentExecution
public class ReptileIndexJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        ElasticService elasticService= ApplicationCommon.applicationContext.getBean(ElasticService.class);
        elasticService.addDoc();
    }


}
